<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/jsp/include.jsp" %>
<%@ include file="/WEB-INF/jsp/header.jsp" %>

<title>Клиенты</title>
<a href="main">
	<div class="mybutton">
		На главную
	</div>
</a>
<br><br><br>
<table>
<tr>
	<th>ФИО</th>
	<th>Дата рождения</th>
</tr>
<c:forEach items="${persons}" varStatus="i" var="person">
<tbody>
	<tr>
		<td><a href="person?id=${person.id}"> ${person.first_name} ${person.middle_name} ${person.last_name}</a></td>
		<td>${strings.get(i.index)}</td>
	</tr>
</tbody>
</c:forEach>
</table>
<a href="person_add"> 
	<div class="mybutton" style="width: 150px">
		Добавить клиента
	</div>
</a>
<a href="person_search"> 
	<div class="mybutton" style="width: 150px">
		Поиск клиентов
	</div>
</a>
<%@ include file="/WEB-INF/jsp/footer.jsp" %>